﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using iCooker.NET.Core.DataTransferObjects;

namespace iCooker.NET.Tests.TestOverDto
{
    /// <summary>
    /// Summary description for Recipe_DTO_Test
    /// </summary>
    [TestClass]
    public class Recipe_DTO_Test
    {

        [TestInitialize]
        public void Setup()
        { 
            //Do your initialization
            
        }

        [TestMethod]
        public void Can_Create_Object_Recipe()
        {
            //prepare the test
            Recipe thisRecipe = new Recipe() { 
                                                Id = 1, Guid = new Guid() , 
                                                Author = "Jimmy Cullum" , 
                                                Created = DateTime.Now, 
                                                Description = "This is a sample Description" 
                                                };

           //execute
            thisRecipe.Author += " Junior";

            //test
            Assert.AreEqual(thisRecipe.Author , "Jimmy Cullum Junior");
            Assert.AreEqual(thisRecipe.Id , 1);

        }
      
    }
}
